namespace MyBlog.Model
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;

    [Serializable]
    public partial class PicCommentModel
    {
        public PicCommentModel()
        {
            PicComments = new List<PicCommentModel>();
        }

        public bool IsLoop { set; get; }

        public int ID { get; set; }

        public int PicId { get; set; }

        public int? ParentID { set; get; }

        public PicCommentModel Parent { set; get; }

        //[Required]
        [StringLength(50)]
        public string VisitorName { get; set; }

        //[Required]
        [StringLength(50)]
        public string VisitorIP { get; set; }

        [StringLength(50)]
        public string CommentUid { set; get; }

        [Required]
        [StringLength(250)]
        public string Content { get; set; }

        public DateTime CommentTime { get; set; }

        public  AlbumDetailModel AlbumDetail { get; set; }

        public List<PicCommentModel> PicComments { get; set; }
    }
}
